<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<title>指导老师——指导团队列表</title>
	<link href="__CSS__/table.css" rel="Stylesheet" rev="Stylesheet">
	<script src="__JS__/jquery-1.8.2.js" type="text/javascript"></script>
	<style type="text/css">
		th,td
		{
			text-align:center;
		}
	</style>
</head>
<body>
	<empty name="list">
		<div style="margin:20px 100px">
			<h1>暂无指导老师邀请</h1>
		</div>
	<else/>
    
	
    <div style="margin-left:7px;margin-top:5px;margin-bottom:10px">
		
		<table summary="团队邀请列表" id="box-table-a">
			<thead>
				<tr>
					<th scope="col">
						团队logo
					</th>
					<th scope="col">
						团队名称
					</th>
					<th scope="col">
						队长名
					</th>
					<th scope="col">
						团队宣言
					</th>
					<th scope="col">
						操作
					</th>
				</tr>
			</thead>
			<tbody> 
				<volist name="list" id="list" key="k">
				<tr>
					<td><img src="__UPFILE__/Img/TeamFace/{$list.Logo}" height="50" width="50"/></td>
					<td>{$list.Name}</td>
					<td>{$list.CaptainName}</td>
					<td>{$list.Declaration}</td>
					<td>
						<a href="javascript:void(0);" onclick="doDel({$list.Id},2,this)" ><img alt="拒绝" src="__IMG__/onError.gif" /></a>
						<a href="javascript:void(0);" onclick="doApp({$list.Id},1,this)" ><img alt="通过" src="__IMG__/onCorrect.gif" /></a>
					</td>
				</tr>
				</volist>
				<script>
					function doDel(sid,action,ob){
						if(confirm("确定要拒绝吗？"));
						$.ajax({
							url:"__URL__/instructorsTeamApproved/",
							type:"POST",
							data:{id:sid,aa:action},
							dataType:"json",
							success:function(){
								$(ob).parents("tr").remove();
							},
							error:function(){
								alert('error');
							}
						});
					}
					function doApp(sid,action,ob){
						if(confirm("确定给予吗？"))
						$.ajax({
							url:"__URL__/instructorsTeamApproved/",
							type:"POST",
							data:{id:sid,aa:action},
							dataType:"json",
							success:function(){
								$(ob).parents("tr").remove();
							},
							error:function(){
								alert('error');
							}
						});
					}
				</script>
			</tbody>
        </table>
		</empty>
    </div>
    
</body>
</html>